<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>修改充值订单记录管理</title>
	<meta name="decorator" content="default"/>
	<script src="${ctxStatic}/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
		function excel(){
			$('#searchForm').attr('action',"${ctx}/jiujiu/jiuRechargeLogAudit/excel");
			$('#searchForm').submit();
		}
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/jiujiu/jiuRechargeLogAudit/">修改充值订单记录列表</a></li>
		<shiro:hasPermission name="jiujiu:jiuRechargeLogAudit:edit"><li><a href="${ctx}/jiujiu/jiuRechargeLogAudit/form">修改充值订单记录添加</a></li></shiro:hasPermission>
	</ul>
	<form:form id="searchForm" modelAttribute="jiuRechargeLogAudit" action="${ctx}/jiujiu/jiuRechargeLogAudit/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<label>门店名称：</label><form:input path="storeName" htmlEscape="false" maxlength="50" class="input-medium"/>
		<label>订单号：</label><form:input path="orderNo" htmlEscape="false" maxlength="50" class="input-medium"/>
	  	<label>申请时间 ：</label>
	
		<input id="startTime" name="startTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
				value="<fmt:formatDate value="${jiuRechargeLogAudit.startTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
				onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/> -至-
				
		<input id="endTime" name="endTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
				value="<fmt:formatDate value="${jiuRechargeLogAudit.endTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
				onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/> 
		&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/> 
		&nbsp;<input class="btn btn-primary" type="button" value="导出" onclick="javascript:excel()"/>
	</form:form> 
	<tags:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered ">
		<thead><tr><th>订单号</th><th>门店名称</th><th>原充值金额</th><th>原充值积分</th><th>改后充值金额</th><th>改后充值积分</th><th>申请人</th><th>申请时间</th><th>审核人</th><th>审核时间</th><shiro:hasPermission name="jiujiu:jiuRechargeLogAudit:edit"><th>操作</th></shiro:hasPermission></tr></thead>
		<tbody>
		<c:forEach items="${page.list}" var="jiuRechargeLogAudit">
			<tr>
				<td>${jiuRechargeLogAudit.orderNo}</td>
				<td>${jiuRechargeLogAudit.storeName}</td>
				<td>${jiuRechargeLogAudit.money}</td>
				<td>${jiuRechargeLogAudit.point}</td>
				<td>${jiuRechargeLogAudit.modifyMoney}</td>
				<td>${jiuRechargeLogAudit.modifyPoint}</td>
				<td>${jiuRechargeLogAudit.applyManaName}</td>
				<td>${jiuRechargeLogAudit.applyTime}</td>
				<td>${jiuRechargeLogAudit.auditName}</td>
				<td>${jiuRechargeLogAudit.auditTime}</td>
	
				<shiro:hasPermission name="jiujiu:jiuRechargeLogAudit:edit"><td>
    				<a class="btn btn-success" href="${ctx}/jiujiu/jiuRechargeLogAudit/form?id=${jiuRechargeLogAudit.id}">修改</a>
					<a class="btn btn-danger" href="${ctx}/jiujiu/jiuRechargeLogAudit/delete?id=${jiuRechargeLogAudit.id}" onclick="return confirmx('确认要删除该修改充值订单记录吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>
